<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HelloController as HelloController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/hello', [HelloController::class, 'index']);

Route::view('/greet', 'greet', ['name' => 'Taylor']);


Route::get('/database', [\App\Http\Controllers\DatebaseController::class, 'index']);



Route::view('/login_view', 'login');
Route::view('/register_view', 'register');
Route::post('/register', [\App\Http\Controllers\AuthController::class, 'register']);
Route::post('/login', [\App\Http\Controllers\AuthController::class, 'login']);

Route::post('/insert', [\App\Http\Controllers\DatebaseController::class, 'insert']);
Route::view('/insert_view', 'test');
